<!DOCTYPE html>
<html>
<head>
<script src="../../resources/js-test.js"></script>
</head>
<body>

<form>
<input required>
<input type=submit>
</form>

<div id=console></div>

<script>
function check() {
    testPassed('Not crashed.');
    if (window.testRunner)
        testRunner.notifyDone();
}

if (window.testRunner) {
    testRunner.dumpAsText();
    testRunner.waitUntilDone();
    setTimeout(check, 10);
    document.getElementsByTagName('input')[1].click();
} else {
    debug('Click the submit button.  The test passes if the browser doesn\'t crash.');
}

</script>
</body>
</html>
